package com.ymttest.database.sqlwapper.godmch;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.ymt.database.SqlManager;
import com.ymttest.database.model.ymt_autoreply;
import com.ymttest.database.model.godmch.buyer_invite_code;
import com.ymttest.database.model.godmch.buyer_invite_codeExample;
import com.ymttest.database.model.godmch.supplierLog;
import com.ymttest.database.model.godmch.supplierLogExample;
import com.ymttest.utils.EnvSetup;
/************************************************************************************
 * @File name : buyer_invite_codeWapperWapper.java
 * @Author : 吴文
 * @Date : 
 * @Copyright : 洋码头
 *godmach
 ************************************************************************************/
public class buyer_invite_codeWapper {
	SqlManager manage;
	public buyer_invite_codeWapper() {
		manage = new SqlManager("mysqlgodmchdb" + EnvSetup.getEnv());
		 
	}
	
	 public   List<buyer_invite_code> selectByExample(buyer_invite_codeExample example) throws InterruptedException {

		List<buyer_invite_code> list =  manage.getSelectResults("com.ymttest.database.mapping.godmch.buyer_invite_codeMapper.selectByExample",example);
		
		manage.commit();
		return list;
	}
	 
	 
	 public   Integer updateByPrimaryKey(buyer_invite_code record) throws InterruptedException {

		Integer result =  manage.update("com.ymttest.database.mapping.godmch.buyer_invite_codeMapper.updateByPrimaryKey",record);
		
		manage.commit();
		return result;
	}
	
	public static void main(String args[]) {
	  
	}
}
